/*
package cn.dogger.easyboot.master.interceptor;


import cn.dev33.satoken.stp.StpUtil;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

*/
/**
 * @author dogger
 * 2021/8/3 15:32
 *//*


@Aspect
@Component
@Slf4j
public class WebAspect {

    //扫描所有的controller类,但排除登录用的类
    @Pointcut("within(cn.dogger.easyboot.*.controller.*) && !within(cn.dogger.easyboot.login.controller.*) && !within(cn.dogger.easyboot.demo.controller.*)")
    public void webPointCut() {
    }

    @Around("webPointCut()")
    public Object around(ProceedingJoinPoint point) throws Throwable {
            //判断在当前浏览器是否登录
                StpUtil.checkLogin();
                return point.proceed();
    }
}
*/
